Fix mouse-dragging mode lines on text-mode terminals.
authorEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:00:51 +0000 (18:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 9 Sep 2014 15:00:51 +0000 (18:00 +0300)
commit79e4a89fd1e2088fc9f5bc94861f459adc4cd8ed
treebee81c8c4c8b7ff4b2b9811d7b590cc80ff0d3a7
parent6164f341a91e05dda6ccaa5a4413367ca9a76706
Fix mouse-dragging mode lines on text-mode terminals.

 lisp/mouse.el (mouse-drag-line): On text-mode frames, count the mode
 line and header line as 1 pixel.  This fixes the 1-"pixel" (row)
 discrepancy between window-pixel-edges and mouse events, and
 avoids moving mode line up when the mouse click is on the modeline
 and no drag is attempted.
lisp/ChangeLog
lisp/mouse.el